Skip to content

Conversation

@SaiChaii
Copy link

@SaiChaii SaiChaii commented Dec 23, 2025

What kind of change does this PR introduce?

Bug fix

Issue Number:

Screenshots/videos:

Screenshot 2025-12-23 at 10 22 51 AM

If relevant, did you update the documentation?

No

Summary

This PR fixes an issue in the custom JSON parser where string boundaries
were incorrectly detected when a string ended with escaped backslashes.
The previous logic relied on a regex that did not correctly account for
multiple escaped backslashes before a quote, causing parsing errors.

The parser now correctly determines whether a quote is escaped by counting
preceding backslashes, ensuring JSON blocks render correctly in all cases.

Does this PR introduce a breaking change?

No

Please ensure the following tasks are completed before submitting this pull request.

@SaiChaii SaiChaii requested a review from a team as a code owner December 23, 2025 04:52
@github-project-automation github-project-automation bot moved this to Ready to review in PR - Triage Group Dec 23, 2025
@github-actions
Copy link

github-actions bot commented Dec 23, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview b8fcc39

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4765f6d) to head (b8fcc39).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2022   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          633       633           
  Branches       196       196           
=========================================
  Hits           633       633           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready to review

Development

Successfully merging this pull request may close these issues.

🐛 Bug: Custom JSON parser fails on escaped backslashes preceding quotes

1 participant